#include "utils.h"

#include<iostream>
#include<fstream>
#include<sstream>
#include <locale>
#include <codecvt>

using namespace std;


std::wstring read_txt(const std::string &file_path) {
  ifstream fin(file_path.c_str());
  stringstream buffer;
  buffer << fin.rdbuf();

  std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
  return converter.from_bytes(buffer.str());
}